package com.base.proxy.jdk.custom;


import com.base.proxy.jdk.custom.proxy.ZtoExpressProxy;
import com.base.proxy.jdk.custom.service.ExpressService;
import com.base.proxy.jdk.custom.service.impl.CustomerImpl;

/**
 * Created by xingyuchao on 2017-06-16.
 * 手写jdk动态代理测试类
 */
public class CustomMain {

    public static void main(String[] args) {

        ExpressService target = new CustomerImpl();

        ExpressService proxy = (ExpressService) new ZtoExpressProxy().getZtoExpressProxy(target);

        proxy.receiveExpress();
    }
}
